Package com.cisco.pt.ipc.sim
Interface ServicePolicyManager
- All Superinterfaces:
IPCObject
- All Known Implementing Classes:
ServicePolicyManagerImpl
Information provided by the PKI file:
\class CServicePolicyManager
\brief CServicePolicyManager stores and retrieves service-policy for traffic inspection
\example network().getDevice("Router0").getServicePolicyManager()
- Author:
- Auto-generated
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteServicePolicy(String policyMapName, String intfName) Information provided by the PKI file:Information provided by the PKI file:getIntfServicePolicy(String intfName) Information provided by the PKI file:getServicePolicy(String policyName, String mode, String intf) Information provided by the PKI file:getServicePolicyAt(int index) Information provided by the PKI file:intInformation provided by the PKI file:Methods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession
-
Method Details
-
deleteServicePolicy
Information provided by the PKI file:
\brief Delete the service policy that matches policy-map and interface name- Parameters:
policyMapName- Takes in a parameter of policyMapNameintfName- Takes in a parameter of intfName
-
getServicePolicy
Information provided by the PKI file:
\brief Returns the service-policy that matches policy-map name, mode("interface"/"global") and interface nameIf- Parameters:
policyName- Takes in a parameter of policyNamemode- Takes in a parameter of modeintf- Takes in a parameter of intf- Returns:
- ServicePolicy Returns a ServicePolicy
-
getGlobalServicePolicy
ServicePolicy getGlobalServicePolicy()Information provided by the PKI file:
\brief Returns the global service-policy- Returns:
- ServicePolicy Returns a ServicePolicy
-
getIntfServicePolicy
Information provided by the PKI file:
\brief Returns the interface service-policy that matches the interface nameIf- Parameters:
intfName- Takes in a parameter of intfName- Returns:
- ServicePolicy Returns a ServicePolicy
-
getServicePolicyAt
Information provided by the PKI file:
\brief Returns the service-policy at a specified index- Parameters:
index- Takes in a parameter of index- Returns:
- ServicePolicy Returns a ServicePolicy
-
getServicePolicyCount
int getServicePolicyCount()Information provided by the PKI file:
\brief Returns the number of service-policy has been configured- Returns:
- int Returns a int
-